/*
 * Copyright (C) 2008 nextcode:ch
 * 
 * Author: Michele Dell'Ambrogio, m@nextcode.ch
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of version 2 of the GNU General Public License as 
 * published by the Free Software Foundation.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package sfplayer;

import java.util.List;
import javax.swing.SwingUtilities;
import sfplayer.datatypes.Broadcast;
import sfplayer.grabber.BroadcastsBuilder;
import sfplayer.gui.WindowMain;

/**
 *
 * @author micc
 */
public class SFPlayer {
    
    List<Broadcast> broadcasts = null;

    public SFPlayer() {
        
        readPreferences();
        
        BroadcastsBuilder bb = new BroadcastsBuilder();
        broadcasts = bb.getBroadcasts();

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                WindowMain playerWindow = new WindowMain(broadcasts);
            }
        });

    }

    private void checkSoftwareUpdate() {
        // to do
    }

    private void readPreferences() {
        // read the preferences file
        // save data as static values 
    }
    
}
